import json

if __name__ == '__main__':
    with open("first.json", "r", encoding="utf-8") as f:
        a = json.load(f)
    with open("second.json", "r", encoding="utf-8") as f:
        b = json.load(f)
    a.extend(b)
    with open("train.json", "w", encoding="utf-8") as f:
        json.dump(a, f)
